import { createRenderer,createWebHistory} from 'vue-router'

const routes = [
    {path:"/",name:"index",title:"首页",component:() => import("../views/index.vue")}
    {path:"/mall",name:"mall",title:"商场",component:() => import("../views/mall.vue")}
    {path:"/user",name:"user",title:"个人中心",component:() => import("../views/user.vue")}
    {path:"/userProfile",name:"userProfile",title:"个人主页",component:() => import("../views/userProfile.vue")}
    {path:"/login",name:"login",title:"登录",component:() => import("../views/login.vue")}
    {path:"/register",name:"register",title:"注册",component:() => import("../views/register.vue")}
];
const router=createRenderer({
    history:createWebHistory(),
    routes:routes
})

export default router